package org.exez.modules.quartz.job;

import lombok.extern.slf4j.Slf4j;
import org.exez.modules.visitor.service.IReservationApplicationService;
import org.exez.modules.visitor.service.SjyService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 同步设备是否在线
 *
 * @Author Scott
 */
@Slf4j
public class DeviceDetectHeartbeatJob implements Job {
	@Autowired
	private SjyService sjyService;

	@Override
	public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {

		log.info("=============同步设备是否在线开始======================");
		sjyService.updateDeviceByHeartbeat();

		log.info("=============同步设备是否在线结束======================");
	}
}
